﻿using Microsoft.OpenApi.Models;
using Swashbuckle.AspNetCore.SwaggerGen;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GYCTOAManagementSystemNewApi.Model.Tool
{
    /// <summary>
    /// 接口说明类
    /// </summary>
    public class SwaggerDescriptions:IDocumentFilter
    {
        public void Apply(OpenApiDocument doc,DocumentFilterContext context) {
            doc.Tags = new List<OpenApiTag> {
                new OpenApiTag{Name="Login",Description="登录"},
                new OpenApiTag{Name="Home",Description="主页"},
                new OpenApiTag{Name="AccountManagement",Description="账号管理"},
                new OpenApiTag{Name="App",Description="app所用"},
                new OpenApiTag{Name="Attendance",Description="考勤管理"},
                new OpenApiTag{Name="CertificateManagement",Description="证书管理"},
                new OpenApiTag{Name="Contract",Description="合同管理"},
                new OpenApiTag{Name="Customer",Description="客户管理"},
                new OpenApiTag{Name="Department",Description="部门管理"},
                new OpenApiTag{Name="Device",Description="物资管理"},
                new OpenApiTag{Name="Document",Description="文档管理"},
                new OpenApiTag{Name="Finance",Description="财务管理"},
                new OpenApiTag{Name="IntangibleAssets",Description="无形资产管理"},
                new OpenApiTag{Name="KnowledgeFile",Description="知识库"},
                new OpenApiTag{Name="Maintenance",Description="维修列表"},
                new OpenApiTag{Name="MessageTable",Description="消息管理"},
                new OpenApiTag{Name="OfficialSeal",Description="公章管理"},
                new OpenApiTag{Name="Project1",Description="项目管理"},
                new OpenApiTag{Name="Purchase",Description="采购管理"},
                new OpenApiTag{Name="Qualification",Description="资质管理"},
                new OpenApiTag{Name="Report",Description="报表管理"},
                new OpenApiTag{Name="Right",Description="权限管理"},
                new OpenApiTag{Name="UserInfo",Description="用户管理"},
                new OpenApiTag{Name="VehicleManagement",Description="车辆管理"},
            };
        }
    }
}
